<?php
	$data = array();
	$data['title'] = "Sản phẩm mới";
	$db = new Model_mpro;
	$pager = new libraries_pager;
	$pager->set_link("index.php?page=pro_new");
	$start = 0;
	$limit = 15;
	$total = $db->total_pro_new();
	$data['cate'] = $db->list_cate();
	//debug($total);
	$start = $pager->start();
	$pages = $pager->page($total,$limit);
	$data['pagelist'] = $pager->listpage($pages,$start,$limit);
	$data['list_pro'] = $db->list_pro_new($start,$limit);
	$data['template'] = "product/pro_list_new_view";
	loadview("layout",$data);
?>